package main

import "github.com/gin-gonic/gin"

func main() {
	//创建一个默认路由
	r := gin.Default()

	//配置路由
	r.GET("/", func(c *gin.Context) {

		c.String(200, " Gin")
	})

	r.GET("/hello", func(c *gin.Context) {

		c.String(200, "Hello ")
	})

	//启动一个web服务 Listening and serving HTTP on :8000
	r.Run(":8000")

}
